<%
const { contract, utils } = it;
const { formatDescription, require, _ } = utils;
%>
class <%~ contract.name %> {
  <% for (const field of contract.$content) { %>
    <%~ includeFile('@base/object-field-jsdoc.ejs', { ...it, field }) %>
    <%~ includeFile('./object-field-class-validator.ejs', { ...it, field }) %>
    <%~ field.name %><%~ (field.isRequired && !field.nullable) || !field.nullable || !field.nullable ? '!' : '' %><%~ field.nullable ? '?' : '' %>: <%~ field.value.replaceAll('any', 'unknown') %>;
  <% } %>
}
